# Mock 数据

import requests


def get_mock_data():
    """
    获取模拟数据
    :return:
    """
    url = 'https://v.api.aa1.cn/api/zhihu-news/index.php?aa1=xiarou'
    result = requests.get(url).json()
    print(result)
    return result

def get_dailytext_mock_data():
    """
    获取模拟数据
    :return:
    """
    # url = 'https://luckycola.com.cn/tools/yiyan'
    url = 'https://v.api.aa1.cn/api/api-wenan-aiqing/index.php?type=json'
    result = requests.get(url).json()
    print(result)
    return result

# 广告
mock_advertisements = [
    {
        "id": 1,
        "imageUrl": "https://img.shejidna.com/worksdna125048ee98afa996e5d2ca2eda9b16d3.jpeg",
        "category2Id": 3
    },
    {
        "id": 2,
        "imageUrl": "https://tse4-mm.cn.bing.net/th/id/OIP-C.Cj0s0KFlTL314Fn9XxdetAHaKe?w=202&h=286&c=7&r=0&o=7&dpr=1.5&pid=1.7&rm=3",
        "category2Id": 4
    },
    {
        "id": 3,
        "imageUrl": "https://c-ssl.duitang.com/uploads/item/202006/04/20200604160414_fhhlp.jpeg",
        "category2Id": 5
    },
    {
        "id": 4,
        "imageUrl": "https://www.8090.com/uploads/allimg/190802/293517-1ZP2104AC95.jpg",
        "category2Id": 6
    }
]
# 商品
mock_goods = [
    {
        "id": 97,
        "createTime": "1972-01-12 00:10:05",
        "updateTime": "2007-11-28 08:47:29",
        "isDeleted": 47,
        "category1Id": 26,
        "category2Id": 43,
        "name": "iPhone 16 Pro",
        "price": 90,
        "marketPrice": 25,
        "saleCount": 27,
        "stockCount": 18,
        "imageUrl": "https://www.apple.com.cn/v/iphone/home/cc/images/overview/select/iphone_16pro__erw9alves2qa_xlarge_2x.png",
        "floralLanguage": "iPhone 巅峰之作",
        "applyUser": "sed ipsum in nostrud",
        "material": "Lorem voluptate Ut aute laboris",
        "packing": "incididunt fugiat occaecat laboris",
        "isRecommend": 17,
        "detailList": None
    },
    {
        "id": 14,
        "createTime": "2003-11-10 14:43:15",
        "updateTime": "1976-10-04 04:13:35",
        "isDeleted": 65,
        "category1Id": 78,
        "category2Id": 11,
        "name": "iPhone 16",
        "price": 89,
        "marketPrice": 38,
        "saleCount": 34,
        "stockCount": 76,
        "imageUrl": "https://www.apple.com.cn/v/iphone/home/cc/images/overview/select/iphone_16__c5bvots96jee_xlarge_2x.png",
        "floralLanguage": "实打实的实力",
        "applyUser": "aliqua laborum eu dolore fugiat",
        "material": "culpa Lorem commodo est reprehenderit",
        "packing": "elit consequat sed",
        "isRecommend": 5,
        "detailList": None
    },
    {
        "id": 77,
        "createTime": "2011-12-01 01:06:32",
        "updateTime": "1992-03-16 21:37:13",
        "isDeleted": 98,
        "category1Id": 73,
        "category2Id": 5,
        "name": "iPhone 16e",
        "price": 41,
        "marketPrice": 99,
        "saleCount": 38,
        "stockCount": 74,
        "imageUrl": "https://www.apple.com.cn/v/iphone/home/cc/images/overview/select/iphone_16e__cubm3xoy5qaa_xlarge_2x.png",
        "floralLanguage": "超值刷新",
        "applyUser": "fugiat",
        "material": "Lorem aute",
        "packing": "nisi",
        "isRecommend": 14,
        "detailList": None
    }
]
# 推荐商品
mock_recommend_goods = [
    {
        "id": 1,
        "imageUrl": "http://39.98.123.211:8300/images/love.jpg",
        "category2Id": 3
    },
    {
        "id": 2,
        "imageUrl": "http://39.98.123.211:8300/images/elder.jpg",
        "category2Id": 4
    },
    {
        "id": 3,
        "imageUrl": "http://39.98.123.211:8300/images/friend.jpg",
        "category2Id": 5
    }
]
